package String.综合练习;

public class 字符串乘积 {
    public static void main(String[] args) {
        String num1="123";
        String num2="234";

        int number=getInt(num1)*getInt(num2);
        System.out.println(number+"");

    }
    public static int getInt(String num){
        // 分别获取两个整数
        int number=0;
        for (int i = 0; i < num.length(); i++) {
            int ge=num.charAt(i)-48;
            number=number*10+ge;
        }
        return number;
    }
}
